import React from 'react'
import { useRoutes } from 'react-router-dom'
import { routers } from './routes/router'
import WithRouter from './components/HOC/WithRouter'
const App: React.FC = () => {
  const el = useRoutes(routers)
  return (
    <div>{el}</div>
  )
}
export default WithRouter(App)
